﻿$(function () {
    //定义字段
    var ColModel = [
        { display: '自动编号', name: 'AutoID', width: 50, sortable: true, align: 'left', hide: true },
        { display: '系统编号', name: 'voucher_id', width: 60, sortable: true, align: 'left', hide: false },
        { display: '订单编号', name: 'co_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '创建日期', name: 'create_date', width: 70, sortable: true, align: 'left', hide: false },
        { display: '客户编号', name: 'ct_user_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '分店编号', name: 'ct_store_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '简称', name: 'ct_abbr', width: 120, sortable: true, align: 'left', hide: false },
        { display: '代垫运费', name: 'ds_tr', width: 55, sortable: true, align: 'right', hide: false },
        { display: '订单金额', name: 'co_amt', width: 55, sortable: true, align: 'right', hide: false },
        { display: '确认金额', name: 'acce_co_amt', width: 55, sortable: true, align: 'right', hide: false },
        { display: '顾客', name: 'ds_name', width: 50, sortable: true, align: 'left', hide: false },
        { display: '城市', name: 'ds_city', width: 50, sortable: true, align: 'left', hide: false },
        { display: '制单人', name: 'person ', width: 50, sortable: true, align: 'left', hide: false }
    ];
    var ColModel_1 = [
        { display: '自动编号', name: 'AutoID', width: 50, sortable: true, align: 'left', hide: true },
        { display: '系统编号', name: 'voucher_id', width: 60, sortable: true, align: 'left', hide: false },
        { display: '订单编号', name: 'co_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '创建日期', name: 'create_date', width: 70, sortable: true, align: 'left', hide: false },
        { display: '客户编号', name: 'ct_user_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '分店编号', name: 'ct_store_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '简称', name: 'ct_abbr', width: 180, sortable: true, align: 'left', hide: false },
        { display: '顾客', name: 'ds_name', width: 50, sortable: true, align: 'left', hide: false },
        { display: '城市', name: 'ds_city', width: 50, sortable: true, align: 'left', hide: false },
        { display: '代垫运费', name: 'ds_tr', width: 55, sortable: true, align: 'right', hide: false },
        { display: '订单金额', name: 'co_amt', width: 55, sortable: true, align: 'right', hide: false },
        { display: '制单人', name: 'person ', width: 50, sortable: true, align: 'left', hide: false }
    ];
    var ColModel_4 = [
        { display: '自动编号', name: 'AutoID', width: 50, sortable: true, align: 'left', hide: true },
        { display: '系统编号', name: 'voucher_id', width: 60, sortable: true, align: 'left', hide: false },
        { display: '订单编号', name: 'co_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '创建日期', name: 'create_date', width: 70, sortable: true, align: 'left', hide: false },
        { display: '客户编号', name: 'ct_user_no', width: 80, sortable: true, align: 'left', hide: false },
        { display: '分店编号', name: 'ct_store_no', width: 60, sortable: true, align: 'left', hide: false },
        { display: '简称', name: 'ct_abbr', width: 120, sortable: true, align: 'left', hide: false },
        { display: '代垫运费', name: 'ds_tr', width: 55, sortable: true, align: 'right', hide: false },
        { display: '订单金额', name: 'co_amt', width: 55, sortable: true, align: 'right', hide: false },
        { display: '确认金额', name: 'acce_co_amt', width: 55, sortable: true, align: 'right', hide: false },
        { display: '顾客', name: 'ds_name', width: 50, sortable: true, align: 'left', hide: false },
        { display: '城市', name: 'ds_city', width: 50, sortable: true, align: 'left', hide: false },
        { display: '制单人', name: 'person ', width: 50, sortable: true, align: 'left', hide: false },
        { display: '状态', name: 'status', width: 25, sortable: true, align: 'left', hide: false }
    ];
    //定义列表
    window.flowClass = new Flow("flowClass", "TabRadio", "List1", "ListTD", "PageTR", "SearchTR", "TitleTR", [
        { TabName: "草稿", Permission: "草稿", ListName: "草稿", Status: "1", DateFilter: false, DateDefult: null, ColModel: ColModel_1, Buttons: [{ ID: "AddButton", ButtonName: "添加", Permission: "草稿", Icon: { primary: "ui-icon-plus" }, Click: function () { window.location.href = $("#UrlAdd").val() + window.flexiGrid.UrlLisParameterst(); } }] },
        { TabName: "审核", Permission: "审核", ListName: "审核", Status: "2", DateFilter: false, DateDefult: null, ColModel: ColModel, Buttons: null },
        { TabName: "确认", Permission: "确认", ListName: "确认", Status: "3", DateFilter: false, DateDefult: null, ColModel: ColModel, Buttons: null },
        { TabName: "查询", Permission: "查询", ListName: "查询", Status: "4", DateFilter: true, DateDefult: "Today", StatisticsName: "合计确认金额", ColModel: ColModel_4, Buttons: null }
    ]);
}); 